<?php

namespace App\Http\Requests\Api;

use App\Http\Requests\ApiRequest;

class VerifyCodeRequest extends ApiRequest
{
    public function rules()
    {
        return [
            'verify_key' => [
                'required',
                'min:32',
                'max:32',
            ],
            'verify_code' => [
                'required'
            ],
        ];
    }

    public function messages()
    {
        return [
            'verify_key.*' => '验证秘钥不合法',
            'verify_code.*' => '验证码不能为空',
        ];
    }
}
